<div class="comment">    

    <% if @comment.member.photo? %>
      <%= image_tag @comment.member.photo.url, :class => "comment" %>
    <% else %>
      <%= image_tag('avatars/default.png', :class => "comment")%>
    <% end %>

    <%= link_to @comment.member.username, @comment.member %> 
    <span class="date">(<%= @comment.created_at %>)</span>

    <div class="comment_inside"><%= @comment.content %></div>
     
    <% if moderator_or_this_member? @comment.member.id %>
      <%= link_to 'Edit', edit_comment_path(@comment) %> |
      <%= link_to 'Delete', @comment, :confirm => 'Are you sure?', :method => :delete %>
    <% end %>

    <div style="clear:both;"></div>
</div>